package reflect;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2024/09/23
 */
public class Bootstrap {
    public static void main(String[] args) throws IOException {
        //想办法获取classpath
        URL resources = Thread.currentThread().getContextClassLoader().getResources("").nextElement();
        File file = new File(resources.getFile());
        File[] files = file.listFiles();
        for (File file1 : files) {
            System.out.println(file1.getName());
        }
    }


}
